package com.xbs.entity;

import java.sql.Date;

import com.xbs.utils.EnterpriseUtils;

public class EpOrderAdminEntity {
	/* 
	* 编号
	 */
	private Integer eo_id;
	
	/**
	 * 企业账号
	 */
	private String eo_account;
	
	/**
	 * 企业订单编号
	 */
	private String eo_order_id;

	/**
	 * 预定取车时间
	 */
	private Date eo_reserve_get_time;
	
	/**
	 * 预定取车地点
	 */
	private String eo_reserve_get_place;
	
	/**
	 * 实际取车时间
	 */
	private Date eo_fact_get_time;

	/**
	 * 实际还车时间
	 */
	private Date eo_fact_return_time;
	
	/**
	 * 订单状态
	 */
	private String eo_order_status;
	
	/**
	 * 赔偿金额
	 */
	private double eo_compensation;

	/**
	 * 应扣款金额
	 */
	private double eo_plan_money;
	
	/**
	 * 实扣款金额
	 */
	private double eo_fact_money;
	
	/**
	 * 实扣款时间
	 */
	private Date eo_fact_time;
	
	/**
	 * 门店
	 */
	private String eo_store;
	
	/**
	 * 负责人
	 */
	private String eo_person;
	
	/**
	 * 备注
	 */
	private String eo_remark;
	/**
	 * 租车天数
	 */
	private Integer rentExpire;
	/**
	 * 租车类型
	 * @return
	 */
	private Integer eo_rent_type;
	public Integer getEo_rent_type() {
		return eo_rent_type;
	}
	public void setEo_rent_type(Integer eo_rent_type) {
		this.eo_rent_type = eo_rent_type;
	}
	public Integer getEo_id() {
		return eo_id;
	}
	public void setEo_id(Integer eo_id) {
		this.eo_id = eo_id;
	}
	public String getEo_account() {
		return eo_account;
	}
	public void setEo_account(String eo_account) {
		this.eo_account = eo_account;
	}
	public String getEo_order_id() {
		return eo_order_id;
	}
	public void setEo_order_id(String eo_order_id) {
		this.eo_order_id = eo_order_id;
	}
	public Date getEo_reserve_get_time() {
		return eo_reserve_get_time;
	}
	public void setEo_reserve_get_time(Date eo_reserve_get_time) {
		this.eo_reserve_get_time = eo_reserve_get_time;
	}
	public String getEo_reserve_get_place() {
		return eo_reserve_get_place;
	}
	public void setEo_reserve_get_place(String eo_reserve_get_place) {
		this.eo_reserve_get_place = eo_reserve_get_place;
	}
	public Date getEo_fact_get_time() {
		return eo_fact_get_time;
	}
	public void setEo_fact_get_time(Date eo_fact_get_time) {
		this.eo_fact_get_time = eo_fact_get_time;
	}
	public Date getEo_fact_return_time() {
		return eo_fact_return_time;
	}
	public void setEo_fact_return_time(Date eo_fact_return_time) {
		this.eo_fact_return_time = eo_fact_return_time;
	}
	public String getEo_order_status() {
		return eo_order_status;
	}
	public void setEo_order_status(String eo_order_status) {
		this.eo_order_status = eo_order_status;
	}
	public double getEo_compensation() {
		return eo_compensation;
	}
	public void setEo_compensation(double eo_compensation) {
		this.eo_compensation = eo_compensation;
	}
	public double getEo_plan_money() {
		return eo_plan_money;
	}
	public void setEo_plan_money(double eo_plan_money) {
		this.eo_plan_money = eo_plan_money;
	}
	public double getEo_fact_money() {
		return eo_fact_money;
	}
	public void setEo_fact_money(double eo_fact_money) {
		this.eo_fact_money = eo_fact_money;
	}
	public Date getEo_fact_time() {
		return eo_fact_time;
	}
	public void setEo_fact_time(Date eo_fact_time) {
		this.eo_fact_time = eo_fact_time;
	}
	public String getEo_store() {
		return eo_store;
	}
	public void setEo_store(String eo_store) {
		this.eo_store = eo_store;
	}
	public String getEo_person() {
		return eo_person;
	}
	public void setEo_person(String eo_person) {
		this.eo_person = eo_person;
	}
	public String getEo_remark() {
		return eo_remark;
	}
	public void setEo_remark(String eo_remark) {
		this.eo_remark = eo_remark;
	}
	public Integer getRentExpire() {
		EnterpriseUtils util=new EnterpriseUtils();
		if(eo_fact_get_time==null){
			return util.daysBetween(eo_reserve_get_time, new Date(System.currentTimeMillis()));
		}
		return util.daysBetween(eo_reserve_get_time,eo_fact_time );
	}
	public void setRentExpire(Integer rentExpire) {
		this.rentExpire = rentExpire;
	}
	
}
